package com.sweetguy.feign;

import com.sweetguy.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("ml-course")
public interface CourseFeign {

    @DeleteMapping("api/v1/comment/deleteByUserId/{userId}")
    Result<Boolean> deleteCommentByUserId(@PathVariable("userId") Long userId);

    @DeleteMapping("api/v1/comment/deleteByUserIds")
    Result<Boolean> deleteCommentByUserIds(@RequestParam("userIds") List<Long> userIds);


    @DeleteMapping("api/v1/report/deleteByUserId/{userId}")
    Result<Boolean> deleteReportByUserId(@PathVariable("userId") Long userId);

    @DeleteMapping("api/v1/report/deleteByUserIds")
    Result<Boolean> deleteReportByUserIds(@RequestParam("userIds") List<Long> userIds);
}
